"use strict";
/**
 * 基础ctl
 */
class BasicsCtl {
  constructor(context) {
    let { openId, userNick, mixNick, miniappId, appVersion, instanceWidgetId, authToken, accessToken, appOwnerOpenId,sourceMiniAppId, cloud, data } = context;
    this.cloud = cloud;
    if (!userNick) {
      userNick = "";
    }
    // let entity_id = instanceWidgetId ? instanceWidgetId : data.instanceWidgetId;
    // let template_id = miniappId ? miniappId : data.miniappId;
    // let template_version = appVersion ? appVersion : data.appVersion;
    // let authToken = authToken ? authToken : data.authToken;
    this.params = { openId, userNick, miniappId, mixNick, accessToken, appOwnerOpenId,appVersion, instanceWidgetId, authToken,sourceMiniAppId, ...data };
  }

}

module.exports = BasicsCtl;